package com.xxgc.eow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxgc.eow.entity.Choosetopic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChoosetopicMapper extends BaseMapper<Choosetopic> {
    int deleteByPrimaryKey(Integer chooseId);

    int insert(Choosetopic row);

    Choosetopic selectByPrimaryKey(Integer chooseId);

    List<Choosetopic> selectAll(@Param("start") Integer pageNum,@Param("end") Integer pageSize);

    int updateByPrimaryKey(Choosetopic row);

    List<Choosetopic> selectAllByTopicLibrary(int libraryId);

    List<Choosetopic> selectAllByChooseTopic(@Param("chooseTopic") Choosetopic choosetopic,@Param("start") Integer start,@Param("end") Integer end,@Param("topicLibraryName") String topicLibraryName);

    Integer selectCount();

    Integer selectCountByChossseTopic(@Param("chooseTopic") Choosetopic choosetopic,@Param("topicLibraryName") String topicLibraryName);

    Integer selectCountByChooseLevel(Integer chooseLevel);
}